import {movieRequest} from '../../api/index'
import store from '../store'

import { GETMOVIELIST } from '../constant/movieConst'

export const getMovieAction = ()=>{
    return async ()=>{
        const re = await movieRequest()
        store.dispatch({
            type:GETMOVIELIST,
            data:re.data.data.list
        })
    }
}